package com.yn.service.dao.zy;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yn.common.model.zy.TCarManageDO;
import com.yn.service.zy.model.dto.TCarManageDTO;
import com.yn.service.zy.model.query.TCarManageQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TCarManageMapper extends BaseMapper<TCarManageDO> {
    /**
     * 分页获取车辆-司机信息
     * @param query
     * @param page
     * @return
     */
    IPage<TCarManageDTO> listPage(@Param("query") TCarManageQuery query, IPage<TCarManageDTO> page);

    /**
     * 获取车辆-司机详情
     * @param id
     * @return
     */
    TCarManageDTO getInfo(@Param("id") Integer id);
}
